<template>
  <div id="ShopFooter">
    <span class="share" @click="share">
      <img src="../../../static/m_img/x_fx.png" alt> 分享好友
    </span>
    <span class="calling">
      <a href="tel:15106101536">
        <img src="../../../static/m_img/x_dh.png" alt>致电商家
      </a>
    </span>
    <span class="dh" @click="messageExpect">
      <img src="../../../static/m_img/x_d4.png" alt>导航到店
    </span>
    <v-messageExpect :isvisibleadd.sync="addinfoshow" v-on:listenToChildEvent="showmsgformchild"></v-messageExpect>
  </div>
</template>
<script>
import vMessageExpect from "../common/messageExpect";
// import {postReq} from '../../assets/js/api.js'
export default {
  data() {
    return {
      addinfoshow: false
    };
  },
  components: {
    vMessageExpect
  },
  methods: {
    messageExpect() {
      this.addinfoshow = true;
    },
    showmsgformchild: function(data) {
      this.addinfoshow = data;
    },
    share() {
     this.WXConfig.wxShowMenu();
    }
  }
};
</script>
<style lang="scss">
#ShopFooter {
  display: flex;
  position: fixed;
  bottom: 0px;
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.16);
  span {
    width: 33.33%;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 1.25rem;
    img {
      width: 15px;
      height: 15px;
      vertical-align: -2px;
      margin-right: 2px;
    }
  }
  .share {
    color: #666;
  }
  .calling {
    background: #ff9800;
    a {
      color: #fff;
    }
  }
  .dh {
    background: #ff651b;
  }
}
</style>